import { defineFakeRoute } from 'vite-plugin-fake-server/client';
import { get, post } from '../BaseMock';

const toolGenListReturn = (req) => {
  return {
    total: 17,
    rows: [
      {
        createBy: 'admin',
        createTime: '2025-01-11 09:33:41',
        updateBy: '',
        updateTime: '2025-01-11 14:47:01',
        remark: null,
        tableId: 3251,
        tableName: 'sys_config',
        tableComment: '参数配置表',
        subTableName: null,
        subTableFkName: null,
        className: 'SysConfig',
        tplCategory: 'crud',
        tplWebType: 'element-ui',
        packageName: 'com.ruoyi.project.system',
        moduleName: 'system',
        businessName: 'config',
        functionName: '参数配置',
        functionAuthor: 'ruoyi',
        genType: '0',
        genPath: '/',
        pkColumn: null,
        subTable: null,
        columns: [
          {
            createBy: 'admin',
            createTime: '2025-01-11 09:33:41',
            updateBy: '',
            updateTime: '2025-01-11 14:47:01',
            remark: null,
            columnId: null,
            tableId: 3251,
            columnName: null,
            columnComment: null,
            columnType: null,
            javaType: null,
            javaField: null,
            isPk: null,
            isIncrement: null,
            isRequired: null,
            isInsert: null,
            isEdit: null,
            isList: null,
            isQuery: null,
            queryType: null,
            htmlType: null,
            dictType: null,
            sort: null,
            list: false,
            increment: false,
            capJavaField: null,
            required: false,
            pk: false,
            insert: false,
            edit: false,
            usableColumn: false,
            superColumn: false,
            query: false
          }
        ],
        options: '{"parentMenuId":0}',
        treeCode: null,
        treeParentCode: null,
        treeName: null,
        parentMenuId: null,
        parentMenuName: null,
        sub: false,
        tree: false,
        crud: true
      },
      {
        createBy: 'admin',
        createTime: '2025-01-11 09:33:41',
        updateBy: '',
        updateTime: null,
        remark: null,
        tableId: 3252,
        tableName: 'sys_dict_data',
        tableComment: '字典数据表',
        subTableName: null,
        subTableFkName: null,
        className: 'SysDictData',
        tplCategory: 'crud',
        tplWebType: '',
        packageName: 'com.ruoyi.project.system',
        moduleName: 'system',
        businessName: 'data',
        functionName: '字典数据',
        functionAuthor: 'ruoyi',
        genType: '0',
        genPath: '/',
        pkColumn: null,
        subTable: null,
        columns: [
          {
            createBy: 'admin',
            createTime: '2025-01-11 09:33:41',
            updateBy: '',
            updateTime: null,
            remark: null,
            columnId: null,
            tableId: 3252,
            columnName: null,
            columnComment: null,
            columnType: null,
            javaType: null,
            javaField: null,
            isPk: null,
            isIncrement: null,
            isRequired: null,
            isInsert: null,
            isEdit: null,
            isList: null,
            isQuery: null,
            queryType: null,
            htmlType: null,
            dictType: null,
            sort: null,
            list: false,
            increment: false,
            capJavaField: null,
            required: false,
            pk: false,
            insert: false,
            edit: false,
            usableColumn: false,
            superColumn: false,
            query: false
          }
        ],
        options: null,
        treeCode: null,
        treeParentCode: null,
        treeName: null,
        parentMenuId: null,
        parentMenuName: null,
        sub: false,
        tree: false,
        crud: true
      },
      {
        createBy: 'admin',
        createTime: '2025-01-11 09:33:41',
        updateBy: '',
        updateTime: null,
        remark: null,
        tableId: 3253,
        tableName: 'sys_dict_type',
        tableComment: '字典类型表',
        subTableName: null,
        subTableFkName: null,
        className: 'SysDictType',
        tplCategory: 'crud',
        tplWebType: '',
        packageName: 'com.ruoyi.project.system',
        moduleName: 'system',
        businessName: 'type',
        functionName: '字典类型',
        functionAuthor: 'ruoyi',
        genType: '0',
        genPath: '/',
        pkColumn: null,
        subTable: null,
        columns: [
          {
            createBy: 'admin',
            createTime: '2025-01-11 09:33:41',
            updateBy: '',
            updateTime: null,
            remark: null,
            columnId: null,
            tableId: 3253,
            columnName: null,
            columnComment: null,
            columnType: null,
            javaType: null,
            javaField: null,
            isPk: null,
            isIncrement: null,
            isRequired: null,
            isInsert: null,
            isEdit: null,
            isList: null,
            isQuery: null,
            queryType: null,
            htmlType: null,
            dictType: null,
            sort: null,
            list: false,
            increment: false,
            capJavaField: null,
            required: false,
            pk: false,
            insert: false,
            edit: false,
            usableColumn: false,
            superColumn: false,
            query: false
          }
        ],
        options: null,
        treeCode: null,
        treeParentCode: null,
        treeName: null,
        parentMenuId: null,
        parentMenuName: null,
        sub: false,
        tree: false,
        crud: true
      },
      {
        createBy: 'admin',
        createTime: '2025-01-11 09:33:41',
        updateBy: '',
        updateTime: null,
        remark: null,
        tableId: 3254,
        tableName: 'sys_job',
        tableComment: '定时任务调度表',
        subTableName: null,
        subTableFkName: null,
        className: 'SysJob',
        tplCategory: 'crud',
        tplWebType: '',
        packageName: 'com.ruoyi.project.system',
        moduleName: 'system',
        businessName: 'job',
        functionName: '定时任务调度',
        functionAuthor: 'ruoyi',
        genType: '0',
        genPath: '/',
        pkColumn: null,
        subTable: null,
        columns: [
          {
            createBy: 'admin',
            createTime: '2025-01-11 09:33:41',
            updateBy: '',
            updateTime: null,
            remark: null,
            columnId: null,
            tableId: 3254,
            columnName: null,
            columnComment: null,
            columnType: null,
            javaType: null,
            javaField: null,
            isPk: null,
            isIncrement: null,
            isRequired: null,
            isInsert: null,
            isEdit: null,
            isList: null,
            isQuery: null,
            queryType: null,
            htmlType: null,
            dictType: null,
            sort: null,
            list: false,
            increment: false,
            capJavaField: null,
            required: false,
            pk: false,
            insert: false,
            edit: false,
            usableColumn: false,
            superColumn: false,
            query: false
          }
        ],
        options: null,
        treeCode: null,
        treeParentCode: null,
        treeName: null,
        parentMenuId: null,
        parentMenuName: null,
        sub: false,
        tree: false,
        crud: true
      },
      {
        createBy: 'admin',
        createTime: '2025-01-11 09:33:41',
        updateBy: '',
        updateTime: null,
        remark: null,
        tableId: 3255,
        tableName: 'sys_job_log',
        tableComment: '定时任务调度日志表',
        subTableName: null,
        subTableFkName: null,
        className: 'SysJobLog',
        tplCategory: 'crud',
        tplWebType: '',
        packageName: 'com.ruoyi.project.system',
        moduleName: 'system',
        businessName: 'log',
        functionName: '定时任务调度日志',
        functionAuthor: 'ruoyi',
        genType: '0',
        genPath: '/',
        pkColumn: null,
        subTable: null,
        columns: [
          {
            createBy: 'admin',
            createTime: '2025-01-11 09:33:41',
            updateBy: '',
            updateTime: null,
            remark: null,
            columnId: null,
            tableId: 3255,
            columnName: null,
            columnComment: null,
            columnType: null,
            javaType: null,
            javaField: null,
            isPk: null,
            isIncrement: null,
            isRequired: null,
            isInsert: null,
            isEdit: null,
            isList: null,
            isQuery: null,
            queryType: null,
            htmlType: null,
            dictType: null,
            sort: null,
            list: false,
            increment: false,
            capJavaField: null,
            required: false,
            pk: false,
            insert: false,
            edit: false,
            usableColumn: false,
            superColumn: false,
            query: false
          }
        ],
        options: null,
        treeCode: null,
        treeParentCode: null,
        treeName: null,
        parentMenuId: null,
        parentMenuName: null,
        sub: false,
        tree: false,
        crud: true
      },
      {
        createBy: 'admin',
        createTime: '2025-01-11 09:33:41',
        updateBy: '',
        updateTime: null,
        remark: null,
        tableId: 3256,
        tableName: 'sys_logininfor',
        tableComment: '系统访问记录',
        subTableName: null,
        subTableFkName: null,
        className: 'SysLogininfor',
        tplCategory: 'crud',
        tplWebType: '',
        packageName: 'com.ruoyi.project.system',
        moduleName: 'system',
        businessName: 'logininfor',
        functionName: '系统访问记录',
        functionAuthor: 'ruoyi',
        genType: '0',
        genPath: '/',
        pkColumn: null,
        subTable: null,
        columns: [
          {
            createBy: 'admin',
            createTime: '2025-01-11 09:33:41',
            updateBy: '',
            updateTime: null,
            remark: null,
            columnId: null,
            tableId: 3256,
            columnName: null,
            columnComment: null,
            columnType: null,
            javaType: null,
            javaField: null,
            isPk: null,
            isIncrement: null,
            isRequired: null,
            isInsert: null,
            isEdit: null,
            isList: null,
            isQuery: null,
            queryType: null,
            htmlType: null,
            dictType: null,
            sort: null,
            list: false,
            increment: false,
            capJavaField: null,
            required: false,
            pk: false,
            insert: false,
            edit: false,
            usableColumn: false,
            superColumn: false,
            query: false
          }
        ],
        options: null,
        treeCode: null,
        treeParentCode: null,
        treeName: null,
        parentMenuId: null,
        parentMenuName: null,
        sub: false,
        tree: false,
        crud: true
      },
      {
        createBy: 'admin',
        createTime: '2025-01-11 09:33:41',
        updateBy: '',
        updateTime: '2025-01-11 10:41:15',
        remark: null,
        tableId: 3257,
        tableName: 'sys_notice',
        tableComment: '通知公告表',
        subTableName: null,
        subTableFkName: null,
        className: 'SysNotice',
        tplCategory: 'crud',
        tplWebType: 'element-ui',
        packageName: 'com.ruoyi.project.system',
        moduleName: 'system',
        businessName: 'notice',
        functionName: '通知公告',
        functionAuthor: 'ruoyi',
        genType: '0',
        genPath: '/',
        pkColumn: null,
        subTable: null,
        columns: [
          {
            createBy: 'admin',
            createTime: '2025-01-11 09:33:41',
            updateBy: '',
            updateTime: '2025-01-11 10:41:15',
            remark: null,
            columnId: null,
            tableId: 3257,
            columnName: null,
            columnComment: null,
            columnType: null,
            javaType: null,
            javaField: null,
            isPk: null,
            isIncrement: null,
            isRequired: null,
            isInsert: null,
            isEdit: null,
            isList: null,
            isQuery: null,
            queryType: null,
            htmlType: null,
            dictType: null,
            sort: null,
            list: false,
            increment: false,
            capJavaField: null,
            required: false,
            pk: false,
            insert: false,
            edit: false,
            usableColumn: false,
            superColumn: false,
            query: false
          }
        ],
        options: '{"parentMenuId":115}',
        treeCode: null,
        treeParentCode: null,
        treeName: null,
        parentMenuId: null,
        parentMenuName: null,
        sub: false,
        tree: false,
        crud: true
      },
      {
        createBy: 'admin',
        createTime: '2025-01-11 09:33:41',
        updateBy: '',
        updateTime: null,
        remark: null,
        tableId: 3258,
        tableName: 'sys_oper_log',
        tableComment: '操作日志记录',
        subTableName: null,
        subTableFkName: null,
        className: 'SysOperLog',
        tplCategory: 'crud',
        tplWebType: '',
        packageName: 'com.ruoyi.project.system',
        moduleName: 'system',
        businessName: 'log',
        functionName: '操作日志记录',
        functionAuthor: 'ruoyi',
        genType: '0',
        genPath: '/',
        pkColumn: null,
        subTable: null,
        columns: [
          {
            createBy: 'admin',
            createTime: '2025-01-11 09:33:41',
            updateBy: '',
            updateTime: null,
            remark: null,
            columnId: null,
            tableId: 3258,
            columnName: null,
            columnComment: null,
            columnType: null,
            javaType: null,
            javaField: null,
            isPk: null,
            isIncrement: null,
            isRequired: null,
            isInsert: null,
            isEdit: null,
            isList: null,
            isQuery: null,
            queryType: null,
            htmlType: null,
            dictType: null,
            sort: null,
            list: false,
            increment: false,
            capJavaField: null,
            required: false,
            pk: false,
            insert: false,
            edit: false,
            usableColumn: false,
            superColumn: false,
            query: false
          }
        ],
        options: null,
        treeCode: null,
        treeParentCode: null,
        treeName: null,
        parentMenuId: null,
        parentMenuName: null,
        sub: false,
        tree: false,
        crud: true
      },
      {
        createBy: 'admin',
        createTime: '2025-01-11 09:33:41',
        updateBy: '',
        updateTime: null,
        remark: null,
        tableId: 3259,
        tableName: 'sys_role_dept',
        tableComment: '角色和部门关联表',
        subTableName: null,
        subTableFkName: null,
        className: 'SysRoleDept',
        tplCategory: 'crud',
        tplWebType: '',
        packageName: 'com.ruoyi.project.system',
        moduleName: 'system',
        businessName: 'dept',
        functionName: '角色和部门关联',
        functionAuthor: 'ruoyi',
        genType: '0',
        genPath: '/',
        pkColumn: null,
        subTable: null,
        columns: [
          {
            createBy: 'admin',
            createTime: '2025-01-11 09:33:41',
            updateBy: '',
            updateTime: null,
            remark: null,
            columnId: null,
            tableId: 3259,
            columnName: null,
            columnComment: null,
            columnType: null,
            javaType: null,
            javaField: null,
            isPk: null,
            isIncrement: null,
            isRequired: null,
            isInsert: null,
            isEdit: null,
            isList: null,
            isQuery: null,
            queryType: null,
            htmlType: null,
            dictType: null,
            sort: null,
            list: false,
            increment: false,
            capJavaField: null,
            required: false,
            pk: false,
            insert: false,
            edit: false,
            usableColumn: false,
            superColumn: false,
            query: false
          }
        ],
        options: null,
        treeCode: null,
        treeParentCode: null,
        treeName: null,
        parentMenuId: null,
        parentMenuName: null,
        sub: false,
        tree: false,
        crud: true
      },
      {
        createBy: 'admin',
        createTime: '2025-01-11 09:33:41',
        updateBy: '',
        updateTime: null,
        remark: null,
        tableId: 3260,
        tableName: 'sys_user_post',
        tableComment: '用户与岗位关联表',
        subTableName: null,
        subTableFkName: null,
        className: 'SysUserPost',
        tplCategory: 'crud',
        tplWebType: '',
        packageName: 'com.ruoyi.project.system',
        moduleName: 'system',
        businessName: 'post',
        functionName: '用户与岗位关联',
        functionAuthor: 'ruoyi',
        genType: '0',
        genPath: '/',
        pkColumn: null,
        subTable: null,
        columns: [
          {
            createBy: 'admin',
            createTime: '2025-01-11 09:33:41',
            updateBy: '',
            updateTime: null,
            remark: null,
            columnId: null,
            tableId: 3260,
            columnName: null,
            columnComment: null,
            columnType: null,
            javaType: null,
            javaField: null,
            isPk: null,
            isIncrement: null,
            isRequired: null,
            isInsert: null,
            isEdit: null,
            isList: null,
            isQuery: null,
            queryType: null,
            htmlType: null,
            dictType: null,
            sort: null,
            list: false,
            increment: false,
            capJavaField: null,
            required: false,
            pk: false,
            insert: false,
            edit: false,
            usableColumn: false,
            superColumn: false,
            query: false
          }
        ],
        options: null,
        treeCode: null,
        treeParentCode: null,
        treeName: null,
        parentMenuId: null,
        parentMenuName: null,
        sub: false,
        tree: false,
        crud: true
      }
    ],
    code: 200,
    msg: '查询成功'
  };
};
export default defineFakeRoute([get('/tool/gen/list', toolGenListReturn)]);
